<ui:composition template="/paginas/chatTemplate.xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="principal">
			<h:form id="formCadastro">
				<h:panelGrid columns="2">
					<h:outputLabel value="#{msg.login}:" />
					<p:inputText id="username" value="#{cadastroLoginMB.usuario.username}" />

					<h:outputLabel value="#{msg.senha}:" />
					<p:password id="passwd" value="#{cadastroLoginMB.usuario.password}" />

					<h:outputText value="#{msg.autorizacao}:" />
			        <p:selectOneMenu value="#{cadastroLoginMB.autorizacoes}">  
			            <f:selectItem itemLabel="Select One" itemValue="" />  
			            <f:selectItem itemLabel="Option 1" itemValue="1" />  
			            <f:selectItem itemLabel="Option 2" itemValue="2" />  
			            <f:selectItem itemLabel="Option 3" itemValue="3" />  
			        </p:selectOneMenu>
				</h:panelGrid>
				<br />
				<div>
					<p:commandButton action="#{cadastroLoginMB.cadastrar()}" value="Cadastrar" />
				</div>
			</h:form>
	</ui:define>
</ui:composition>
